Hệ thống quản lý phương tiện trong PHP

1 <?php
2
3    $id=$_GET[
'busid'];
4    $salary=$_POST[
'salary'];
5    $equipment=$_POST[
'equipment'];
6    $oil=$_POST[
'oil'];
7    $tcost=$_POST[
'tcost'];
8
9    $conn=mysqli_connect(
'localhost','root','','vehicle management');
10    $sql=
"INSERT INTO bill VALUES('','$id','$salary','$equipment','$oil','$tcost')";
11    
if(mysqli_query($conn,$sql)){
12        
13                 $msg=
"<script language='javascript'>
14                                        swal(
15                                             'Success!',
16                                             'Registration Completed!',
17                                             'success'
18                                             );
19                           </script>"
;
20         
21       header(
"Location: indexbill.php");
22    }
else{
23         echo
"Not inserted";
24    }
25 ?>


Gõ tìm kiếm nhanh...